package com.dengyafei.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class GraduateEntityExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GraduateEntityExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andGidIsNull() {
            addCriterion("gid is null");
            return (Criteria) this;
        }

        public Criteria andGidIsNotNull() {
            addCriterion("gid is not null");
            return (Criteria) this;
        }

        public Criteria andGidEqualTo(Integer value) {
            addCriterion("gid =", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotEqualTo(Integer value) {
            addCriterion("gid <>", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidGreaterThan(Integer value) {
            addCriterion("gid >", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidGreaterThanOrEqualTo(Integer value) {
            addCriterion("gid >=", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidLessThan(Integer value) {
            addCriterion("gid <", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidLessThanOrEqualTo(Integer value) {
            addCriterion("gid <=", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidIn(List<Integer> values) {
            addCriterion("gid in", values, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotIn(List<Integer> values) {
            addCriterion("gid not in", values, "gid");
            return (Criteria) this;
        }

        public Criteria andGidBetween(Integer value1, Integer value2) {
            addCriterion("gid between", value1, value2, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotBetween(Integer value1, Integer value2) {
            addCriterion("gid not between", value1, value2, "gid");
            return (Criteria) this;
        }

        public Criteria andGnameIsNull() {
            addCriterion("gname is null");
            return (Criteria) this;
        }

        public Criteria andGnameIsNotNull() {
            addCriterion("gname is not null");
            return (Criteria) this;
        }

        public Criteria andGnameEqualTo(String value) {
            addCriterion("gname =", value, "gname");
            return (Criteria) this;
        }

        public Criteria andGnameNotEqualTo(String value) {
            addCriterion("gname <>", value, "gname");
            return (Criteria) this;
        }

        public Criteria andGnameGreaterThan(String value) {
            addCriterion("gname >", value, "gname");
            return (Criteria) this;
        }

        public Criteria andGnameGreaterThanOrEqualTo(String value) {
            addCriterion("gname >=", value, "gname");
            return (Criteria) this;
        }

        public Criteria andGnameLessThan(String value) {
            addCriterion("gname <", value, "gname");
            return (Criteria) this;
        }

        public Criteria andGnameLessThanOrEqualTo(String value) {
            addCriterion("gname <=", value, "gname");
            return (Criteria) this;
        }

        public Criteria andGnameLike(String value) {
            addCriterion("gname like", value, "gname");
            return (Criteria) this;
        }

        public Criteria andGnameNotLike(String value) {
            addCriterion("gname not like", value, "gname");
            return (Criteria) this;
        }

        public Criteria andGnameIn(List<String> values) {
            addCriterion("gname in", values, "gname");
            return (Criteria) this;
        }

        public Criteria andGnameNotIn(List<String> values) {
            addCriterion("gname not in", values, "gname");
            return (Criteria) this;
        }

        public Criteria andGnameBetween(String value1, String value2) {
            addCriterion("gname between", value1, value2, "gname");
            return (Criteria) this;
        }

        public Criteria andGnameNotBetween(String value1, String value2) {
            addCriterion("gname not between", value1, value2, "gname");
            return (Criteria) this;
        }

        public Criteria andGnicknameIsNull() {
            addCriterion("gnickname is null");
            return (Criteria) this;
        }

        public Criteria andGnicknameIsNotNull() {
            addCriterion("gnickname is not null");
            return (Criteria) this;
        }

        public Criteria andGnicknameEqualTo(String value) {
            addCriterion("gnickname =", value, "gnickname");
            return (Criteria) this;
        }

        public Criteria andGnicknameNotEqualTo(String value) {
            addCriterion("gnickname <>", value, "gnickname");
            return (Criteria) this;
        }

        public Criteria andGnicknameGreaterThan(String value) {
            addCriterion("gnickname >", value, "gnickname");
            return (Criteria) this;
        }

        public Criteria andGnicknameGreaterThanOrEqualTo(String value) {
            addCriterion("gnickname >=", value, "gnickname");
            return (Criteria) this;
        }

        public Criteria andGnicknameLessThan(String value) {
            addCriterion("gnickname <", value, "gnickname");
            return (Criteria) this;
        }

        public Criteria andGnicknameLessThanOrEqualTo(String value) {
            addCriterion("gnickname <=", value, "gnickname");
            return (Criteria) this;
        }

        public Criteria andGnicknameLike(String value) {
            addCriterion("gnickname like", value, "gnickname");
            return (Criteria) this;
        }

        public Criteria andGnicknameNotLike(String value) {
            addCriterion("gnickname not like", value, "gnickname");
            return (Criteria) this;
        }

        public Criteria andGnicknameIn(List<String> values) {
            addCriterion("gnickname in", values, "gnickname");
            return (Criteria) this;
        }

        public Criteria andGnicknameNotIn(List<String> values) {
            addCriterion("gnickname not in", values, "gnickname");
            return (Criteria) this;
        }

        public Criteria andGnicknameBetween(String value1, String value2) {
            addCriterion("gnickname between", value1, value2, "gnickname");
            return (Criteria) this;
        }

        public Criteria andGnicknameNotBetween(String value1, String value2) {
            addCriterion("gnickname not between", value1, value2, "gnickname");
            return (Criteria) this;
        }

        public Criteria andGpasswordIsNull() {
            addCriterion("gpassword is null");
            return (Criteria) this;
        }

        public Criteria andGpasswordIsNotNull() {
            addCriterion("gpassword is not null");
            return (Criteria) this;
        }

        public Criteria andGpasswordEqualTo(String value) {
            addCriterion("gpassword =", value, "gpassword");
            return (Criteria) this;
        }

        public Criteria andGpasswordNotEqualTo(String value) {
            addCriterion("gpassword <>", value, "gpassword");
            return (Criteria) this;
        }

        public Criteria andGpasswordGreaterThan(String value) {
            addCriterion("gpassword >", value, "gpassword");
            return (Criteria) this;
        }

        public Criteria andGpasswordGreaterThanOrEqualTo(String value) {
            addCriterion("gpassword >=", value, "gpassword");
            return (Criteria) this;
        }

        public Criteria andGpasswordLessThan(String value) {
            addCriterion("gpassword <", value, "gpassword");
            return (Criteria) this;
        }

        public Criteria andGpasswordLessThanOrEqualTo(String value) {
            addCriterion("gpassword <=", value, "gpassword");
            return (Criteria) this;
        }

        public Criteria andGpasswordLike(String value) {
            addCriterion("gpassword like", value, "gpassword");
            return (Criteria) this;
        }

        public Criteria andGpasswordNotLike(String value) {
            addCriterion("gpassword not like", value, "gpassword");
            return (Criteria) this;
        }

        public Criteria andGpasswordIn(List<String> values) {
            addCriterion("gpassword in", values, "gpassword");
            return (Criteria) this;
        }

        public Criteria andGpasswordNotIn(List<String> values) {
            addCriterion("gpassword not in", values, "gpassword");
            return (Criteria) this;
        }

        public Criteria andGpasswordBetween(String value1, String value2) {
            addCriterion("gpassword between", value1, value2, "gpassword");
            return (Criteria) this;
        }

        public Criteria andGpasswordNotBetween(String value1, String value2) {
            addCriterion("gpassword not between", value1, value2, "gpassword");
            return (Criteria) this;
        }

        public Criteria andGsexIsNull() {
            addCriterion("gsex is null");
            return (Criteria) this;
        }

        public Criteria andGsexIsNotNull() {
            addCriterion("gsex is not null");
            return (Criteria) this;
        }

        public Criteria andGsexEqualTo(String value) {
            addCriterion("gsex =", value, "gsex");
            return (Criteria) this;
        }

        public Criteria andGsexNotEqualTo(String value) {
            addCriterion("gsex <>", value, "gsex");
            return (Criteria) this;
        }

        public Criteria andGsexGreaterThan(String value) {
            addCriterion("gsex >", value, "gsex");
            return (Criteria) this;
        }

        public Criteria andGsexGreaterThanOrEqualTo(String value) {
            addCriterion("gsex >=", value, "gsex");
            return (Criteria) this;
        }

        public Criteria andGsexLessThan(String value) {
            addCriterion("gsex <", value, "gsex");
            return (Criteria) this;
        }

        public Criteria andGsexLessThanOrEqualTo(String value) {
            addCriterion("gsex <=", value, "gsex");
            return (Criteria) this;
        }

        public Criteria andGsexLike(String value) {
            addCriterion("gsex like", value, "gsex");
            return (Criteria) this;
        }

        public Criteria andGsexNotLike(String value) {
            addCriterion("gsex not like", value, "gsex");
            return (Criteria) this;
        }

        public Criteria andGsexIn(List<String> values) {
            addCriterion("gsex in", values, "gsex");
            return (Criteria) this;
        }

        public Criteria andGsexNotIn(List<String> values) {
            addCriterion("gsex not in", values, "gsex");
            return (Criteria) this;
        }

        public Criteria andGsexBetween(String value1, String value2) {
            addCriterion("gsex between", value1, value2, "gsex");
            return (Criteria) this;
        }

        public Criteria andGsexNotBetween(String value1, String value2) {
            addCriterion("gsex not between", value1, value2, "gsex");
            return (Criteria) this;
        }

        public Criteria andGageIsNull() {
            addCriterion("gage is null");
            return (Criteria) this;
        }

        public Criteria andGageIsNotNull() {
            addCriterion("gage is not null");
            return (Criteria) this;
        }

        public Criteria andGageEqualTo(Integer value) {
            addCriterion("gage =", value, "gage");
            return (Criteria) this;
        }

        public Criteria andGageNotEqualTo(Integer value) {
            addCriterion("gage <>", value, "gage");
            return (Criteria) this;
        }

        public Criteria andGageGreaterThan(Integer value) {
            addCriterion("gage >", value, "gage");
            return (Criteria) this;
        }

        public Criteria andGageGreaterThanOrEqualTo(Integer value) {
            addCriterion("gage >=", value, "gage");
            return (Criteria) this;
        }

        public Criteria andGageLessThan(Integer value) {
            addCriterion("gage <", value, "gage");
            return (Criteria) this;
        }

        public Criteria andGageLessThanOrEqualTo(Integer value) {
            addCriterion("gage <=", value, "gage");
            return (Criteria) this;
        }

        public Criteria andGageIn(List<Integer> values) {
            addCriterion("gage in", values, "gage");
            return (Criteria) this;
        }

        public Criteria andGageNotIn(List<Integer> values) {
            addCriterion("gage not in", values, "gage");
            return (Criteria) this;
        }

        public Criteria andGageBetween(Integer value1, Integer value2) {
            addCriterion("gage between", value1, value2, "gage");
            return (Criteria) this;
        }

        public Criteria andGageNotBetween(Integer value1, Integer value2) {
            addCriterion("gage not between", value1, value2, "gage");
            return (Criteria) this;
        }

        public Criteria andGbirthdayIsNull() {
            addCriterion("gbirthday is null");
            return (Criteria) this;
        }

        public Criteria andGbirthdayIsNotNull() {
            addCriterion("gbirthday is not null");
            return (Criteria) this;
        }

        public Criteria andGbirthdayEqualTo(Date value) {
            addCriterionForJDBCDate("gbirthday =", value, "gbirthday");
            return (Criteria) this;
        }

        public Criteria andGbirthdayNotEqualTo(Date value) {
            addCriterionForJDBCDate("gbirthday <>", value, "gbirthday");
            return (Criteria) this;
        }

        public Criteria andGbirthdayGreaterThan(Date value) {
            addCriterionForJDBCDate("gbirthday >", value, "gbirthday");
            return (Criteria) this;
        }

        public Criteria andGbirthdayGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("gbirthday >=", value, "gbirthday");
            return (Criteria) this;
        }

        public Criteria andGbirthdayLessThan(Date value) {
            addCriterionForJDBCDate("gbirthday <", value, "gbirthday");
            return (Criteria) this;
        }

        public Criteria andGbirthdayLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("gbirthday <=", value, "gbirthday");
            return (Criteria) this;
        }

        public Criteria andGbirthdayIn(List<Date> values) {
            addCriterionForJDBCDate("gbirthday in", values, "gbirthday");
            return (Criteria) this;
        }

        public Criteria andGbirthdayNotIn(List<Date> values) {
            addCriterionForJDBCDate("gbirthday not in", values, "gbirthday");
            return (Criteria) this;
        }

        public Criteria andGbirthdayBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("gbirthday between", value1, value2, "gbirthday");
            return (Criteria) this;
        }

        public Criteria andGbirthdayNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("gbirthday not between", value1, value2, "gbirthday");
            return (Criteria) this;
        }

        public Criteria andGphoneIsNull() {
            addCriterion("gphone is null");
            return (Criteria) this;
        }

        public Criteria andGphoneIsNotNull() {
            addCriterion("gphone is not null");
            return (Criteria) this;
        }

        public Criteria andGphoneEqualTo(String value) {
            addCriterion("gphone =", value, "gphone");
            return (Criteria) this;
        }

        public Criteria andGphoneNotEqualTo(String value) {
            addCriterion("gphone <>", value, "gphone");
            return (Criteria) this;
        }

        public Criteria andGphoneGreaterThan(String value) {
            addCriterion("gphone >", value, "gphone");
            return (Criteria) this;
        }

        public Criteria andGphoneGreaterThanOrEqualTo(String value) {
            addCriterion("gphone >=", value, "gphone");
            return (Criteria) this;
        }

        public Criteria andGphoneLessThan(String value) {
            addCriterion("gphone <", value, "gphone");
            return (Criteria) this;
        }

        public Criteria andGphoneLessThanOrEqualTo(String value) {
            addCriterion("gphone <=", value, "gphone");
            return (Criteria) this;
        }

        public Criteria andGphoneLike(String value) {
            addCriterion("gphone like", value, "gphone");
            return (Criteria) this;
        }

        public Criteria andGphoneNotLike(String value) {
            addCriterion("gphone not like", value, "gphone");
            return (Criteria) this;
        }

        public Criteria andGphoneIn(List<String> values) {
            addCriterion("gphone in", values, "gphone");
            return (Criteria) this;
        }

        public Criteria andGphoneNotIn(List<String> values) {
            addCriterion("gphone not in", values, "gphone");
            return (Criteria) this;
        }

        public Criteria andGphoneBetween(String value1, String value2) {
            addCriterion("gphone between", value1, value2, "gphone");
            return (Criteria) this;
        }

        public Criteria andGphoneNotBetween(String value1, String value2) {
            addCriterion("gphone not between", value1, value2, "gphone");
            return (Criteria) this;
        }

        public Criteria andGschoolnameIsNull() {
            addCriterion("gschoolname is null");
            return (Criteria) this;
        }

        public Criteria andGschoolnameIsNotNull() {
            addCriterion("gschoolname is not null");
            return (Criteria) this;
        }

        public Criteria andGschoolnameEqualTo(String value) {
            addCriterion("gschoolname =", value, "gschoolname");
            return (Criteria) this;
        }

        public Criteria andGschoolnameNotEqualTo(String value) {
            addCriterion("gschoolname <>", value, "gschoolname");
            return (Criteria) this;
        }

        public Criteria andGschoolnameGreaterThan(String value) {
            addCriterion("gschoolname >", value, "gschoolname");
            return (Criteria) this;
        }

        public Criteria andGschoolnameGreaterThanOrEqualTo(String value) {
            addCriterion("gschoolname >=", value, "gschoolname");
            return (Criteria) this;
        }

        public Criteria andGschoolnameLessThan(String value) {
            addCriterion("gschoolname <", value, "gschoolname");
            return (Criteria) this;
        }

        public Criteria andGschoolnameLessThanOrEqualTo(String value) {
            addCriterion("gschoolname <=", value, "gschoolname");
            return (Criteria) this;
        }

        public Criteria andGschoolnameLike(String value) {
            addCriterion("gschoolname like", value, "gschoolname");
            return (Criteria) this;
        }

        public Criteria andGschoolnameNotLike(String value) {
            addCriterion("gschoolname not like", value, "gschoolname");
            return (Criteria) this;
        }

        public Criteria andGschoolnameIn(List<String> values) {
            addCriterion("gschoolname in", values, "gschoolname");
            return (Criteria) this;
        }

        public Criteria andGschoolnameNotIn(List<String> values) {
            addCriterion("gschoolname not in", values, "gschoolname");
            return (Criteria) this;
        }

        public Criteria andGschoolnameBetween(String value1, String value2) {
            addCriterion("gschoolname between", value1, value2, "gschoolname");
            return (Criteria) this;
        }

        public Criteria andGschoolnameNotBetween(String value1, String value2) {
            addCriterion("gschoolname not between", value1, value2, "gschoolname");
            return (Criteria) this;
        }

        public Criteria andEmailIsNull() {
            addCriterion("email is null");
            return (Criteria) this;
        }

        public Criteria andEmailIsNotNull() {
            addCriterion("email is not null");
            return (Criteria) this;
        }

        public Criteria andEmailEqualTo(String value) {
            addCriterion("email =", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailNotEqualTo(String value) {
            addCriterion("email <>", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailGreaterThan(String value) {
            addCriterion("email >", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailGreaterThanOrEqualTo(String value) {
            addCriterion("email >=", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailLessThan(String value) {
            addCriterion("email <", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailLessThanOrEqualTo(String value) {
            addCriterion("email <=", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailLike(String value) {
            addCriterion("email like", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailNotLike(String value) {
            addCriterion("email not like", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailIn(List<String> values) {
            addCriterion("email in", values, "email");
            return (Criteria) this;
        }

        public Criteria andEmailNotIn(List<String> values) {
            addCriterion("email not in", values, "email");
            return (Criteria) this;
        }

        public Criteria andEmailBetween(String value1, String value2) {
            addCriterion("email between", value1, value2, "email");
            return (Criteria) this;
        }

        public Criteria andEmailNotBetween(String value1, String value2) {
            addCriterion("email not between", value1, value2, "email");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}